import { Routes } from '@angular/router';
import { WorkspaceComponent } from './workspace.component';
import { NotFoundComponent } from './not-found/not-found.component';

export const workspaceRoutes: Routes = [{
  path: '',
  component: WorkspaceComponent,
  children: [
    { path: 'workspace', redirectTo: 'report-manage', pathMatch: 'full' },
    { path: '', loadChildren: '../manage/manage.module#ManageModule' },
    { path: '', loadChildren: '../report/report.module#ReportModule' },
    { path: '', loadChildren: '../task/task.module#TaskModule' },
    { path: '**', component: NotFoundComponent }
  ]
}];
